package csl.blog.server.mq.produce;

import csl.blog.server.common.MessageHandle;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class EventProducer {

    @Autowired
    private MessageHandle<MsgEvent> eventSender;

    public void send(MsgEvent demoEvent) {
        eventSender.send(demoEvent);
    }
}
